﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ePlanet.ArchiveMange.Models;
using System.Data;
using DreamBuilder.Common;

namespace ePlanet.ArchiveMange.Services
{
    public interface IDocumentArchiveVolService:IBusiness,IArchiveBase
    {
        /// <summary>
        /// 获取全部的文书类卷信息
        /// </summary>
        /// <returns></returns>
        ArchiveMangeModal.DOCUMENT_ARCHIVE_VOLDataTable GetAllDocumenArchivetData();

        /// <summary>
        /// 根据主键查询数据
        /// </summary>
        /// <param name="typeId"></param>
        /// <returns></returns>
        ArchiveMangeModal.DOCUMENT_ARCHIVE_VOLDataTable GetAllDocumenArchivetDataById(string DATAID);

        /// <summary>
        /// 根据过滤条件查询数据
        /// </summary>
        /// <param name="filter">查询条件字符串</param>
        /// <returns></returns>
        ArchiveMangeModal.DOCUMENT_ARCHIVE_VOLDataTable GetAllDocumenArchivetByFilter(string filter);

        /// <summary>
        /// 备注：根据DATAID列表取对应档案的详细信息
        /// 时间：2013年1月9日 23:47:41
        /// </summary>
        /// <param name="idList"></param>
        /// <returns></returns>
        DataTable GetDocumentArchiveDataByIds(IEnumerable<string> idList);

        /// <summary>
        /// 备注：根据DATAID列表取档案交接信息
        /// 时间：2013年4月19日 20:47:42
        /// </summary>
        /// <param name="idList"></param>
        /// <returns></returns>
        DataTable GetHandoverDataByIds(IEnumerable<string> idList);

        DataTable GetArchiveDateSpanByIds(IEnumerable<string> idList);

        /// <summary>
        /// 根据档案类型查询数据
        /// </summary>
        /// <param name="typeId"></param>
        /// <returns></returns>
        ArchiveMangeModal.DOCUMENT_ARCHIVE_VOLDataTable GetArchiveByType(string archiveType);

        /// <summary>
        /// 根据档案类型和用户ID查询数据
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        ArchiveMangeModal.DOCUMENT_ARCHIVE_VOLDataTable GetTypeArchiveByUserId(string archiveType, string userId);
    }
}
